import Vue from "vue";

// //引入login
// import login from "../view/login.vue"

// 1.引入
import VueRouter from "vue-router";
// 2.注册
Vue.use(VueRouter);
// 3.定义路由规则
let routes = [
    {
        path: "/login",
        component: () => import("@/view/login.vue")
    }
]
// 4.实例化路由对象
let router = new VueRouter({
    routes,
})

// 5.导出
export default router